<template>
  <div class="home">
    home
    <!-- <router-link to="/detail"><button>跳转detail页面</button></router-link> -->
    <button @click="handleClick">跳转detail页面</button>
    <button @click="handleMovie">跳转到movieDetail页面</button>

  </div>
</template>
<script>
export default {
  name: "Home",
  methods:{
    handleClick(){
      var id =1001
      this.$router.push(`/detail?id=${id}`)
    },
    handleMovie(){
      var id = 1002;
      this.$router.push(`/movieDetail/${id}`)
    }
  }
};
</script>
